import { attrDefine } from "../../../../defines/attr_define";
import { elementDefine } from "../../../../defines/element_define";
import { equipDefine } from "../../../../defines/equip_define";
import { MoneyDefine } from "../../../../defines/money_define";
import { Goods } from "../../../goods";
import { BasicGoods } from "../../../goods-control/basic_goods";

/**
 * 桌子
 */
export default class GoodNode extends BasicGoods{
  constructor(...params){
    super(...params);
  }

  getTitle(){
    return '木桌子'
  }

  getDesc(){
    return '平平无奇的木桌子。';
  }

  getNeedAttr(){
    return {
      [attrDefine.blood.key]: 8,
    }
  }

  getDefaultAttr(){
    return {
      [attrDefine.element.key]: [elementDefine.wood.key],
      [attrDefine.weight.key]: 100,
      [attrDefine.bloodAtk.key]: 15,
      [attrDefine.durable.key]: 10
    }
  }

  getPrice(){
    return {
      type: MoneyDefine.money.key,
      price: 100
    }
  }
}